<?php
/*Problem Domain
To test the User class entity of the TMS
*/
include_once '../User.php';

class UserTest extends PHPUnit_Framework_TestCase
{
	public function testUserObject()
	{
		$usr1 = new User("mohsin.sayyed@springcomputing.in", "******", "trainee"); 
		$usr3 = new User("abhijeet.majgaonkar@springcomputing.in", "******", "trainee");

		$this->assertEquals(null , $usr1->getId());
		$this->assertEquals(null , $usr1->getEmpId());
		$this->assertEquals('mohsin.sayyed@springcomputing.in' , $usr1->getEmailId());
		$this->assertEquals('******' , $usr1->getPassword());
		$this->assertEquals('trainee' , $usr1->getRole());
	}
}
?>
